/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cafe.DataObject;

/**
 *
 * @author root
 */
public class Customer extends IdObject{

    private String name;
    private boolean sex;
    private String phone;

    public Customer(String name, boolean sex, String phone) {
        this.name = name;
        this.sex = sex;
        this.phone = phone;
    }

    public Customer() {
        
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the sex
     */
    public boolean getSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(boolean sex) {
        this.sex = sex;
    }

    /**
     * @return the phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Object[] toObjectArray(){
        Object[] arr = new  Object[3] ;
        
        arr[0] = this.name;
        arr[1] = this.sex;
        arr[2] = this.phone;
        
        return arr;
    }
}
